package middleware

import (
	"context"
	"net/http"
)

type TestMiddleware struct {
}

func NewTestMiddleware() *TestMiddleware {
	return &TestMiddleware{}
}

func (m *TestMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		ctx := context.WithValue(r.Context(), "testKey", "testValue")
		next.ServeHTTP(w, r.WithContext(ctx))
		//next(w, r)
	}
}
